package com.xy.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author xxy
 * @date 2022/1/5 12:58
 */
@Mapper
public interface TestMapper {

    @Insert("update lock_test set num = #{num}")
    int updateNum(int num);

    @Select("select num from lock_test limit 1")
    int getNum();
}
